
module.exports ={
    mode:"production",
    entry:"./src/index.js",
    output:{
        filename:"build.js",
        path:__dirname+"/dist"
    },
    module:{
        // 匹配规则
        rules:[
            {
                test:/\.css$/i,
                use:["style-loader","css-loader"]
            },
            {
                test: /\.(png|svg|jpg|jpeg|gif)$/i,
                type: 'asset/resource',
            }
        ]
    }
}